package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZiliaoMapper;
import com.ruoyi.system.domain.Ziliao;
import com.ruoyi.system.service.IZiliaoService;

/**
 * 资料上传Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-03
 */
@Service
public class ZiliaoServiceImpl implements IZiliaoService 
{
    @Autowired
    private ZiliaoMapper ziliaoMapper;

    /**
     * 查询资料上传
     * 
     * @param fileId 资料上传主键
     * @return 资料上传
     */
    @Override
    public Ziliao selectZiliaoByFileId(Long fileId)
    {
        return ziliaoMapper.selectZiliaoByFileId(fileId);
    }

    /**
     * 查询资料上传列表
     * 
     * @param ziliao 资料上传
     * @return 资料上传
     */
    @Override
    public List<Ziliao> selectZiliaoList(Ziliao ziliao)
    {
        return ziliaoMapper.selectZiliaoList(ziliao);
    }

    /**
     * 新增资料上传
     * 
     * @param ziliao 资料上传
     * @return 结果
     */
    @Override
    public int insertZiliao(Ziliao ziliao)
    {
        return ziliaoMapper.insertZiliao(ziliao);
    }

    /**
     * 修改资料上传
     * 
     * @param ziliao 资料上传
     * @return 结果
     */
    @Override
    public int updateZiliao(Ziliao ziliao)
    {
        return ziliaoMapper.updateZiliao(ziliao);
    }

    /**
     * 批量删除资料上传
     * 
     * @param fileIds 需要删除的资料上传主键
     * @return 结果
     */
    @Override
    public int deleteZiliaoByFileIds(Long[] fileIds)
    {
        return ziliaoMapper.deleteZiliaoByFileIds(fileIds);
    }

    /**
     * 删除资料上传信息
     * 
     * @param fileId 资料上传主键
     * @return 结果
     */
    @Override
    public int deleteZiliaoByFileId(Long fileId)
    {
        return ziliaoMapper.deleteZiliaoByFileId(fileId);
    }
}
